case $CONFIG in
    '') . config.sh ;;
esac
outputfile=york.cf
rm -f $outputfile.$$
echo "Creating $outputfile (with variable substitutions)"
if cat >$outputfile.$$ <<!GROK!THIS!
# RCSid[] = "@(#)$Header: york.SH,v 3.1 86/12/24 10:45:00 pb Rel $"
#
##################################################
##################################################
##############
############## configure for york directory (D2.2)
##############
##################################################
##################################################

# the directory to search for files in
directory $datadir

# enable tracing
verbose 1

# output format (forward-lookup)
output forward short york

# the comment file to filter
comment hdr.file

#		context		subnet
context 	FTP		JANET
#P context 	FTP		PSS
context 	JTMP		JANET
#P context 	JTMP		PSS
#O context 	JTMP-FILES	JANET
#P context 	JTMP-FILES	PSS
#O context 	JTMP-REG	JANET
#P context 	JTMP-REG	PSS
context 	Mail		JANET
#P context 	Mail		PSS
#O context 	Mail-telex	TELEX
#O context 	Mail-x29	JANET
#P context 	Mail-x29	PSS
context 	Ts29		JANET
#P context 	Ts29		PSS
context 	X29		JANET
#P context 	X29		PSS
#O context 	YBTS		JANET
#P context 	YBTS		PSS
#O context 	YBTS-NODE	JANET
#P context 	YBTS-NODE	PSS
context 	DESC		JANET	
!GROK!THIS!
then
	: OK
else
	echo "	" Failed to create $outputfile.$$
	exit 1
fi
if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
then
	rm -f $outputfile.$$
	echo "	" $outputfile not affected
elif mv $outputfile.$$ $outputfile
then
	echo "	" $outputfile updated
else
	echo "+++	" $outputfile left in $outputfile.$$
fi
